@extends('d.layout.index')
@section('con')
<div class="mws-panel grid_8">
	<div class="mws-panel-header">
    	<span>类别添加页面</span>
    </div>
    <div class="mws-panel-body no-padding">
    	<form action="/admin/topNav/insert" method='post' class="mws-form">
    	{{csrf_field()}}
    		<div class="mws-form-inline"> 
    			 
                <div class="mws-form-row">
                    <label class="mws-form-label">父类类名</label>
                    <div class="mws-form-item">
                        <select class="small" name='pid'>
                            <option value='0'>顶级类</option> 
                            @foreach ($list as $v)
                            <option value='{{$v['id']}}'>{{$v['name']}}</option>
                            @endforeach
                        </select>
                    </div>
                </div>
    			<div class="mws-form-row">
    				<label class="mws-form-label">类别名称:</label>
    				<div class="mws-form-item">
    					<input type="text" name='name' class="small">
    				</div>
    			</div>   
                <div class="mws-form-row">
                    <label class="mws-form-label">URL:</label>
                    <div class="mws-form-item">
                        <input type="text" name='url' class="small">
                    </div>
                </div> 
    		</div>
    		<div class="mws-button-row">
    			<input type="submit" class="btn btn-danger" value="添加">
    			<input type="reset" class="btn " value="重置">
    		</div>
    	</form>
    </div>    	
</div>
@endsection